﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Media;

namespace DXApp.Utils
{
    public class BaseAdorner : Adorner
    {
        protected virtual VisualCollection VisualChildrenCollection { get; set; }
        protected override int VisualChildrenCount => VisualChildrenCollection.Count;
        protected override Visual GetVisualChild(int index) => VisualChildrenCollection[index];

        public BaseAdorner(UIElement adornedElement) : base(adornedElement)
        {
            VisualChildrenCollection = new VisualCollection(this);
        }
    }
}
